KDIR=/lib/modules/$(shell uname -r)/build
obj-m += test_rcu.o
#KDIR=/home/sc20_android7.1.2/out/target/product/msm8909/obj/KERNEL_OBJ
#ARCH=arm
#CROSS_COMPILE=/home/sc20_android7.1.2/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-

all:
#	$(MAKE) ARCH=${ARCH} CROSS_COMPILE=${CROSS_COMPILE} -C $(KDIR) M=$(PWD) modules
	make -C ${KDIR} M=$(PWD) modules

clean:
	rm  -rf *.o *.ko .cache.mk  .t* module* Module*  *.mod.c *.mod
	
